fix(keyboard): 修复长按后点击事件丢失问题 - #737
Merged
Merged
Conversation
长按结束后必须重置 hasTriggeredLongPress 标志,否则会吞掉下一次点击事件, 导致退格键等按键出现吃键现象。 同时修复了滑动检测逻辑,不再使用 swipeDetected 抑制点击事件, 因为 swipeDetected 由 5dp 位移触发而 dragActivated 由更大的 touch slop 触发,在 5dp~touchSlop 区间若被 swipeDetected 吞掉点击且 drag 未激活时,会造成快速打字漏键的问题。 feat(version): 更新版本号至 2.7.2 更新 versionCode 至 20260828,versionName 至 2.7.2 chore(deps): 更新子项目依赖状态
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
长按结束后必须重置 hasTriggeredLongPress 标志,否则会吞掉下一次点击事件,
导致退格键等按键出现吃键现象。
同时修复了滑动检测逻辑,不再使用 swipeDetected 抑制点击事件,
因为 swipeDetected 由 5dp 位移触发而 dragActivated 由更大的 touch slop 触发,在 5dp~touchSlop 区间若被 swipeDetected 吞掉点击且
drag 未激活时,会造成快速打字漏键的问题。
feat(version): 更新版本号至 2.7.2
更新 versionCode 至 20260828,versionName 至 2.7.2
chore(deps): 更新子项目依赖状态
概述
简要描述此 PR 的目的和改动内容。
关联 Issue
Closes #(填写关联 issue 号)
改动类型
自测清单
./gradlew test并通过备注
补充说明(如有)。